package Pantallas;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListModel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class removerRecetas extends javax.swing.JFrame {
	private JList listaRecetas;
	private JLabel recetasExistentes;
	private JButton cancelar;
	private JButton aceptar;
	private JButton removerReceta;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				removerRecetas inst = new removerRecetas();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public removerRecetas() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				ListModel listaRecetasModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				listaRecetas = new JList();
				getContentPane().add(listaRecetas, "Center");
				listaRecetas.setModel(listaRecetasModel);
				listaRecetas.setBounds(141, 23, 261, 149);
			}
			{
				recetasExistentes = new JLabel();
				getContentPane().add(recetasExistentes);
				recetasExistentes.setText("Recetas Existentes");
				recetasExistentes.setBounds(12, 24, 139, 16);
			}
			{
				removerReceta = new JButton();
				getContentPane().add(removerReceta);
				removerReceta.setText("Remover");
				removerReceta.setBounds(425, 23, 119, 23);
				removerReceta.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						System.out.println("removerReceta.actionPerformed, event="+evt);
						//TODO add your code for removerReceta.actionPerformed
					}
				});
			}
			{
				aceptar = new JButton();
				getContentPane().add(aceptar);
				aceptar.setText("Aceptar");
				aceptar.setBounds(224, 194, 106, 23);
				aceptar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						System.out.println("aceptar.actionPerformed, event="+evt);
						//TODO add your code for aceptar.actionPerformed
					}
				});
			}
			{
				cancelar = new JButton();
				getContentPane().add(cancelar);
				cancelar.setText("Cancelar");
				cancelar.setBounds(376, 194, 117, 23);
				cancelar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						System.out.println("cancelar.actionPerformed, event="+evt);
						//TODO add your code for cancelar.actionPerformed
						dispose();
					}
				});
			}
			pack();
			this.setSize(589, 279);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
